package dao;

import pojo.User;
import pojo.Userregist;

import java.util.List;

/**
 * 操作数据库yonghu表的类for login
 */
public interface UserDao {
    /* *
     *登录
     * @param name
     * @param password
     * @return
     */
    public boolean login(String name, String password);


    public List<User> getUsers();

    /**
     * 更改用户信息
     *
     * @param usename
     * @param password
     * @param gender
     * @param telephone
     * @return
     */
    public boolean update(String usename, String password, String gender, String telephone,String age);




    /**
     * 操作数据库yonghu表的类for regist
     */

    public boolean addregist(Userregist userregist);

    public boolean checkregist(String usename);

    public Userregist listuser(String usename,String password,int age,String telephone,String gender);

    Userregist listuser(String usename, String password, String age, String telephone, String gender);
}
